﻿package org.hyy.vo;

public class Category {
	/**
	 * 最多三个级别
	 */
	public static final int MAX_GRADE = 3;
	/**
	 * 每个级别用两位数字表示
	 */
	public static final int LEVEL_LENGTH = 2;
	
	private int id;

	private String name;

	private String descr;

	private int pid;

	private int cno;

	private int grade;

	public Category(int id, String name, String descr, int pid, int cno,
			int grade) {
		super();
		this.id = id;
		this.name = name;
		this.descr = descr;
		this.pid = pid;
		this.cno = cno;
		this.grade = grade;
	}

	public Category() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getCno() {
		return cno;
	}

	public void setCno(int cno) {
		this.cno = cno;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public static int getMAX_GRADE() {
		return MAX_GRADE;
	}

	public static int getLEVEL_LENGTH() {
		return LEVEL_LENGTH;
	}
	
	
}
